<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/9/2
 * Time: 15:13
 */
namespace App\Services;


use App\Repositories\PopupRepository;

class PopupService extends CommonService
{
    protected $popupRepository;

    public function __construct(PopupRepository $popupRepository)
    {
        $this->popupRepository = $popupRepository;
    }

    public function getPopupList($position)
    {
        $data = $this->popupRepository->getList($position);
        return $this->responseJson(0, $data);
    }


}